gdk: Move begin/end_frame() functions
authorBenjamin Otte <otte@redhat.com>
Mon, 23 Apr 2018 15:28:55 +0000 (17:28 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 24 Apr 2018 21:16:58 +0000 (23:16 +0200)
commita8656215195ad3403f8eda727a9116194351ac96
treee2ccecb0b6af48dc6c61a950b3c1d6c0d4e96b27
parent48fc18c37b290f1d4ed57dccce152b75b0232f01
gdk: Move begin/end_frame() functions

As they require a draw context and the draw context is already bound to
the surface, it makes much more sense and reduces abiguity by moving
these APIs to the draw context.

As a side effect, we simplify GdkSurface APIs to a point where
GdkSurface now does not concern itself with drawing anymore at all,
apart from being the object that creates draw contexts.
13 files changed:
docs/reference/gdk/gdk4-sections.txt
gdk/gdkcairocontext.c
gdk/gdkdrawcontext.c
gdk/gdkdrawcontext.h
gdk/gdkdrawcontextprivate.h
gdk/gdkglcontext.c
gdk/gdksurface.c
gdk/gdksurface.h
gdk/gdkvulkancontext.c
gsk/gl/gskglrenderer.c
gsk/gskbroadwayrenderer.c
gsk/gskcairorenderer.c
gsk/vulkan/gskvulkanrenderer.c